<?php
/**
 * Created by PhpStorm.
 * User: php
 * Date: 2016/8/26
 * Time: 15:45
 */

namespace App\Http\Controllers;


use App\Aria2;

class AjaxController extends Controller
{
    public function aria2_status()
    {
        $aria2 = new Aria2();
//        dump($aria2->addUri(['http://vx2-downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2016-05-31/2016-05-27-raspbian-jessie-lite.zip'], ['dir'=>'/tmp']));
        dump($aria2->getGlobalStat());
        dump($aria2->tellActive());


    }
}